﻿using System.ComponentModel.DataAnnotations.Schema;

namespace RBAC.Domain.MaterialManage
{
    /// <summary>
    /// 物料实体
    /// </summary>
    [Table("Mater")]
    public class Mater : BaseEntity
    {
        /// <summary>
        /// 物料编码
        /// </summary>
        public string? MaterCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string? MaterName { get; set; }

        /// <summary>
        /// 主计量
        /// </summary>
        public string? Unit { get; set; }

        /// <summary>
        /// 供应方式：采购、自制、委外
        /// </summary>
        public string? SupplyMode { get; set; }

        /// <summary>
        /// 型号规格
        /// </summary>
        public string? ModelSpec { get; set; }

        /// <summary>
        /// 图纸号
        /// </summary>
        public string? DrawingNo { get; set; }

        /// <summary>
        /// 规格描述
        /// </summary>
        public string? SpecDesc { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        public decimal? Price { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdatedTimes { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 物料类型Id
        /// </summary>
        public long? MaterTypeId { get; set; }
    }
}
